package com.dragon.pear.modules.sample.web.model.results;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-10 04:10
 * Use for: 订单 Http数据查询结果
 * Explain:
 * 
 */
@Schema(description = "订单 请求响应结果")
public class SmpOrderResult {
    @Schema(description = "", example = "1")
    private long id;
    @Schema(description = "", example = "1")
    private long code;
    @Schema(description = "", example = "字符串")
    private String createdBy;
    @Schema(description = "", example = "1")
    private long createdOn;
    @Schema(description = "", example = "1")
    private int isDeleted;
    @Schema(description = "", example = "1")
    private int status;
    @Schema(description = "", example = "字符串")
    private String updatedBy;
    @Schema(description = "", example = "1")
    private long updatedOn;
    @Schema(description = "", example = "字符串")
    private String message;
    @Schema(description = "", example = "1")
    private Double totalPrice;

    // 无参构造方法
    public SmpOrderResult() {
    }

    // 全参数构造方法
    public SmpOrderResult(long id, long code, String createdBy, long createdOn, int isDeleted, int status, String updatedBy, long updatedOn, String message, Double totalPrice) {
        this.id = id;
        this.code = code;
        this.createdBy = createdBy;
        this.createdOn = createdOn;
        this.isDeleted = isDeleted;
        this.status = status;
        this.updatedBy = updatedBy;
        this.updatedOn = updatedOn;
        this.message = message;
        this.totalPrice = totalPrice;
    }

    // 全参数create生成器
    public static SmpOrderResult create(long id, long code, String createdBy, long createdOn, int isDeleted, int status, String updatedBy, long updatedOn, String message, Double totalPrice) {
        return new SmpOrderResult(id, code, createdBy, createdOn, isDeleted, status, updatedBy, updatedOn, message, totalPrice);
    }

    // 全参数of生成器
    public static SmpOrderResult of(long id, long code, String createdBy, long createdOn, int isDeleted, int status, String updatedBy, long updatedOn, String message, Double totalPrice) {
        return new SmpOrderResult(id, code, createdBy, createdOn, isDeleted, status, updatedBy, updatedOn, message, totalPrice);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public SmpOrderResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public SmpOrderResult setCode(long code) {
        this.code = code;
        return this;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public SmpOrderResult setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
        return this;
    }

    public long getCreatedOn() {
        return createdOn;
    }

    public SmpOrderResult setCreatedOn(long createdOn) {
        this.createdOn = createdOn;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public SmpOrderResult setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public SmpOrderResult setStatus(int status) {
        this.status = status;
        return this;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public SmpOrderResult setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
        return this;
    }

    public long getUpdatedOn() {
        return updatedOn;
    }

    public SmpOrderResult setUpdatedOn(long updatedOn) {
        this.updatedOn = updatedOn;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public SmpOrderResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public SmpOrderResult setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
        return this;
    }

    // endregion Getter和Setter方法
}
